<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
<title>zhuce.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div>
<span th:if="${#fields.hasErrors('${userBean.*}')}"><span style="display:inline;color:red;" th:errors="${userBean.*}"></span></span>
<span th:text="${message}"></span>
</div>
<form action="init" th:object="${userBean}" method="post">
<div>
<h3>注册信息</h3>
<table>
<tr>
<td>用 户 ID </td>
<td><input name="userId" type="text" /> </td>
</tr>

<tr>
<td>用  户 名</td>
<td><input name="userName" type="text" /> </td>
</tr>

<tr>
<td>密     码</td>
<td><input name="userPassword" type="password"/> </td>
</tr>

<tr>
<td>确认密码 </td>
<td><input name="passwordConfirm" type="password" /> </td>
</tr>  

<div><label><span style="display:inline;color:red;" th:text="${success}"></span></label></div>

<tr>
<td><input type="submit" value="Submit" name="submit" /> </td>
<td><input type="submit" value="Back" name="back" /> </td>
</tr>

</table>
</div>
</form>
</body>
</html>